package exp03;

import java.util.*;

public class A0b {
    public static void main(String[] args) {
        Scanner cin = new Scanner(System.in);
        int n = cin.nextInt();
        List<Integer> list = new ArrayList<>();//空列表
        for (int i = 0; i < n; i++) {
            Integer cur = cin.nextInt();
            if (list.contains(cur)) continue;//查询元素
            list.add(cur);//插入insert

        }
        Collections.sort(list);
        for (Integer e : list) {
            System.out.println(e);
        }

    }
}